﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing.Imaging.Depend;
using System.Drawing;

namespace System.Drawing.Imaging.Assist
{
    public class ImageProcessFactory
    {
        /// <summary>
        /// Bitmap Process Factory
        /// </summary>
        /// <param name="type">Process type</param>
        /// <param name="data">bitmap</param>
        /// <returns>return type of ImageProcessBase</returns>
        public static ImageProcessBase GetProcessor(ImageColorType type, Bitmap data)
        {
            switch (type)
            {
                case ImageColorType.RP:
                    return (new BPProcess(data));
                case ImageColorType.BW:
                    return (new BWProcess(data));
            }

            return null;
        }
    }
}
